package com.aaa.project.commdetail.service.impl;

import javax.annotation.Resource;

import cn.hutool.core.date.DateUtil;
import com.aaa.project.commdetail.domain.TempTimeStatOnlineNew2;
import com.aaa.project.commdetail.mapper.TempTimeStatOnlineNew2Mapper;
import com.aaa.project.commdetail.service.TempTimeStatOnlineNew2Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.aaa.project.commdetail.domain.TempTimeStatOnlineNew;
import com.aaa.project.commdetail.mapper.TempTimeStatOnlineNewMapper;
import com.aaa.project.commdetail.service.TempTimeStatOnlineNewService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author baibin
 * @version 1.0
 * @date 2025/4/23 15:15
 * @description TempTimeStatOnlineNew2ServiceImpl
 */
@Service
public class TempTimeStatOnlineNew2ServiceImpl implements TempTimeStatOnlineNew2Service {

    private static final Logger log = LoggerFactory.getLogger(TempTimeStatOnlineNew2ServiceImpl.class);

    @Resource
    private TempTimeStatOnlineNew2Mapper mapper;


    @Override
    public void add(TempTimeStatOnlineNew2 vo) {
        mapper.upsert(vo);
    }

    @Override
    public void batchAdd(List<TempTimeStatOnlineNew2> list) {
        // 批量新增
        mapper.batchUpsert(list);
    }

}
